<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<style>
.form-item {
	margin: 20px 10px;
}

.form-item>label {
	letter-spacing: 3px;
	width: 110px;
	text-align: right;
	display: inline-block;
}

.form-item>label:after {
	content: ":";
}

.form-item input[type=text] {
	width: 100px;
}

.form-item.required>label:before {
	content: "*";
	color: red;
}
</style>
<form id="empForm" style="margin-top: 15px; margin-left: 40px;">
	<input type="hidden" name="userInfoId" value="${emp.userinfo_id}">
	<h3 style="margin-left: 150px; padding: 10px;">添加员工</h3>

	<div class="form-item ">
		<label style="margin-left: -50px;" for="">账号</label>
		<input value="" type="text" name="userAccount"  style="width:120px" 
			data-options="required:true" class="easyui-textbox">
			<label style="margin-left: -50px;" for="">密码</label> <input
			value="" type="text" name="userPass" style="width:120px" data-options="required:true"
			class="easyui-passwordbox">
	</div>
	<div class="form-item ">
		<label for="" style="margin-left: -50px;">姓名</label>
		<input value="" type="text" name="userName" data-options="required:true" style="width:120px" class="easyui-textbox">
	<label for=""
			style="margin-left: -50px;">年龄</label>
		<input value="" type="text" name="userAge" style="width:120px"
			data-options="required:true" class="easyui-textbox" />
	
	</div>
	<!--  <div class="form-item ">
		<label for=""
			style="margin-left: 100px; margin-top: -50px; padding: 10px;">用户入职时间</label>
		<input value="" type="text" data-options="required:true"
			class="easyui-datebox" name="hiredate">
	</div> -->
	<div class="form-item ">
		<label for="" style="margin-left: -50px;">性别</label>&nbsp;
		男&nbsp; <input name="userSex"
			${empty userinfo||userinfo.userSex=='1'?'checked':''}
			type="radio" value="1" />&nbsp;&nbsp; 女&nbsp; <input name="userSex"
			type="radio"${empty userinfo||userinfo.userSex=='0'?'checked':''}
			value="0" />
		<label style="margin-left: -10px;" for="">电话</label>
		<input value="" type="text" name="userTel" style="width:120px"
			data-options="required:true" class="easyui-textbox" />
	</div>
	<div class="form-item ">
		<label for="" style="margin-left: -50px;" >所属部门</label>
		<select class="easyui-combobox" name="deptName"
			data-options="multiple:false,panelHeight:'atuo',editable:false,"
			style="width: 120px;">
			<c:forEach items="${deptlist}" var="deptlist">
				<option value="${deptlist.deptId}">${deptlist.deptName}</option>
			</c:forEach>
		</select>
		<label for=""style="margin-left: -48px;">身份</label>
		<select class="easyui-combobox" name="roleName"
			data-options="multiple:false,panelHeight:'atuo',editable:false,"
			style="width: 120px;">
			<c:forEach items="${rolelist}" var="rolelist">
				<c:if test="${rolelist.roleName!='学生' and rolelist.roleName!='超级管理员'}">
					<option value="${rolelist.roleId}">${rolelist.roleName}</option>
				</c:if>
			</c:forEach>
		</select>
	</div>
</form>